package com.bjpowernode.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class IndexController {
    @ResponseBody
    @RequestMapping(value = "/say")
    public Map<String, Object> say(){
        Map<String,Object> map = new HashMap<>();
        map.put("r","Hello SpringBoot!");
        map.put("code",0);
        return map;
    }
}
